package com.woniuxy.user2.controller;

import com.woniuxy.common.entity.Product;
import com.woniuxy.common.service.RemoteProductService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/10 0010-下午 5:41
 */
@RestController
public class User2Controller {
    @Resource
    RemoteProductService productService;
    @RequestMapping("/all")
    public List<Product> all(){
        return productService.all();
    }
    @RequestMapping("/hi")
    public String hi(){
        String name = "李四";
        return productService.hi(name);
    }
}
